package com.dang.apj.serviceImp;

import java.sql.SQLException;
import java.util.List;

import com.dang.apj.factory.DaoFactory;
import com.dang.apj.model.ReceiveAddress;
import com.dang.apj.service.ReceiveAddressService;

public class ReceiveAddressServiceImpl implements ReceiveAddressService {

	@Override
	public ReceiveAddress findById(int id) throws SQLException {
		return DaoFactory.getReceiveAddressImpl().findById(id);
	}

	@Override
	public List<ReceiveAddress> findByUserId(int userId) throws SQLException {
		return DaoFactory.getReceiveAddressImpl().findByUserId(userId);
	}

	@Override
	public void save(ReceiveAddress addr) throws SQLException {
		DaoFactory.getReceiveAddressImpl().save(addr);
	}
	

}
